package com.syx.migration.web;

import com.baomidou.dynamic.datasource.annotation.DSTransactional;
import com.syx.migration.service.BkModuleService;
import com.syx.migration.service.UserModuleService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Administrator
 * @date 2024/6/5 14:05
 * @description: TODO
 */
@RequiredArgsConstructor
@RestController
@RequestMapping("/mgn/bk")
public class BkModuleController {

    private final BkModuleService bkModuleService;

//    @DSTransactional
    @GetMapping("/all")
    public void all(){
//        bkModuleService.migrationBracket();
//        bkModuleService.migrationBkCatalogue();
        bkModuleService.migrationBk();
        bkModuleService.migrationBkBorrow();
        bkModuleService.migrationBkSubscribe();
    }

    @GetMapping("/bracket")
    public void migrationBracket(){
        bkModuleService.migrationBracket();
    }

    @GetMapping("/catalogue")
    public void migrationCatalogue(){
        bkModuleService.migrationBkCatalogue();
    }

    @GetMapping()
    public void migrationBk(){
        bkModuleService.migrationBk();
    }


    @GetMapping("/borrow")
    public void migrationBorrow(){
        bkModuleService.migrationBkBorrow();
    }

    @GetMapping("/subscribe")
    public void migrationSubscribe(){
        bkModuleService.migrationBkSubscribe();
    }

    @GetMapping("/check")
    public void migrationCheck(){
        bkModuleService.migrationCheck();
    }

    @GetMapping("/checkDetail")
    public void migrationCheckDetail(){
        bkModuleService.migrationCheckDetail();
    }
}
